import request from "@/utils/request";

export function listNjtUserRegister(query) {
  return request({
    url: '/nongjt/userRegister/list',
    method: 'get',
    params: query
  })
}
export function listNjtUserInfo(query) {
  return request({
    url: '/nongjt/userInfo/list',
    method: 'get',
    params: query
  })
}
//修改注册用户
export function updateNjtUserRegister(data) {
  return request({
    url: '/nongjt/userRegister',
    method: 'put',
    data: data
  })
}

export function updateNjtUserInfo(data) {
  return request({
    url: '/nongjt/userInfo',
    method: 'put',
    data: data
  })
}
export function deleteNjtUserRegister(userId) {
  return request({
    url: '/nongjt/userRegister/deleteByUserId',
    method: 'delete',
    params: {userId}
  })
}

export function deleteNjtUserInfo(userId) {
  return request({
    url: '/nongjt/userInfo/deleteByUserId',
    method: 'delete',
    params: {userId}
  })
}
export function batchDeleteNjtUserRegister(userIds) {
  return request({
    url: '/nongjt/userRegister/batchDelete',
    method: 'delete',
    data: userIds
  })
}
